/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package carte;

import ctrl.AbstractFactory;
import perso.Personnage;

/**
 *
 * @author Benoît
 */
public class CarteStarWars extends Carte {
    
    private static volatile CarteStarWars instance = null;
    
    private CarteStarWars(Personnage[][] posPerso, AbstractFactory.staticObj[][] planets) {
        super(posPerso, planets);
    }
    
     public static CarteStarWars getInstance(Personnage[][] posPerso, AbstractFactory.staticObj[][] planets) {

        if (CarteStarWars.instance == null) {

            synchronized (CarteStarWars.class) {
                if (CarteStarWars.instance == null) {
                    CarteStarWars.instance = new CarteStarWars(posPerso, planets);
                }
            }
        }
        return CarteStarWars.instance;
    }
}
